@charset "UTF-8";

.explanation {
    margin-top: 20px;
}
@media (max-width: 768px) {
    .explanation {
        margin-top: 15px;
    }
}
.custom-card-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px 0;
}
@media (max-width: 768px) {
    .custom-card-list {
        grid-template-columns: 1fr;
    }
}

.custom-card {
    height: 325px; /* 高さを325pxに固定 */
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background-color: #fff;
    position: relative; /* カードを相対的に配置 */
    transition: box-shadow 0.3s ease; /* シャドウのトランジションを追加 */
}
.custom-card.custom-card_1,
.custom-card.custom-card_2{
    height: 325px;
}
.custom-card.custom-card_3,
.custom-card.custom-card_4 {
    height: 277px;
}
.custom-card img {
    width: 75px; /* 幅を75pxに固定 */
    height: 75px; /* 高さを75pxに固定 */
    margin-bottom: 15px;
}
.custom-card h3 {
    font-weight: 700;
    font-size: 24px;
    line-height: 30px;
    text-align: center;
    margin-bottom: 10px;
    padding-top: 0px;
}
.custom-card p {
    text-align: left;
    margin-bottom: 20px;
}
.custom-card a {
    display: block;
    color: inherit;
    text-decoration: none;
}
.custom-card .btn-red {
    position: absolute; /* 絶対位置に設定 */
    bottom: 20px; /* 下から20pxに固定 */
    left: 50%; /* 水平方向中央に配置 */
    transform: translateX(-50%); /* 中央に位置させるための変換 */
    width: 367px; /* 幅を367pxに設定 */
    height: 58px; /* 高さを58pxに設定 */
    background: #FFFFFF;
    border: 2px solid #FF4433;
    border-radius: 500px;
    color: #000000;
    font-weight: bold;
    font-size: 18px;
    line-height: 26px;
    text-align: center;
    transition: background-color 0.1s ease, color 0.1s ease; /* ボタンのトランジションを短く設定 */
    display: flex;
    align-items: center; /* ボタン内のテキストを上下中央に配置 */
    justify-content: center; /* ボタン内のテキストを左右中央に配置 */
}

.custom-card:hover {
    outline: 2px solid #FF4433; /* 外側にボーダーを追加 */
    outline-offset: -2px; /* ボーダーを少し内側に寄せる */
}
.custom-card:hover::after {
    position: absolute;
    content: "";
    display: inline-block;
    background: url(/img/direct/common/ico_arrow_white.svg) no-repeat;
    background-size: contain;

}

/* .custom-cardをホバーしたときに、.btn-redのスタイルを変更 */
.custom-card:hover .btn-red {
    background: #FF4433; /* ボタンの背景色を赤に変更 */
    color: #ffffff; /* ボタンの文字色を白に変更 */
}
.custom-card:hover .btn-red::after {
    position: absolute;
    content: "";
    display: inline-block;
    background: url(/img/direct/common/ico_arrow_white.svg) no-repeat;
    background-size: contain;
    width: 28px;
    height: 28px;
    top: 15px;
    right: 20px;
}

@media (max-width: 768px) {
    .custom-card {
        height: 270px; /* 高さを自動調整 */
        padding: 15px;
    }
    .custom-card.custom-card_1{
        height: 270px;
    }
    .custom-card.custom-card_2{
        height: 291px;
    }
    .custom-card.custom-card_3{
        height: 249px;
    }
    .custom-card.custom-card_4{
        height: 270px;
    }
    .custom-card .btn-red {
        bottom: 15px; /* スマホでは下から15pxに固定 */
        width: 315px; /* 幅を315pxに固定 */
        height: 58px; /* 高さを58pxに固定 */
        left: 50%; /* 水平方向中央に配置 */
        transform: translateX(-50%); /* 中央に位置させるための変換 */
        display: flex;
        align-items: center; /* ボタン内のテキストを上下中央に配置 */
        justify-content: center; /* ボタン内のテキストを左右中央に配置 */
    }
    .custom-card p {
        text-align: left;
        margin-bottom: 20px;
        font-size: 14px;
    }
    .custom-card h3 {
        font-weight: 700;
        font-size: 16px;
        line-height: 20px;
        text-align: center;
        margin-bottom: 10px;
        padding-top: 0px;
    }
}

/* スマホ表示用のCSS　320 */
@media screen and (max-width: 320px) {
    .custom-card .btn-red {
        width: 270px;
        height: 50px;
    }
}